@prefix-cls: contract-warn;

.overflow() {
  overflow-y: hidden;
  overflow-x: hidden;
}

.@{prefix-cls} {
  width: 100%;
  height: 100%;

  &-homeListSty {
    .ant-list-item-meta {
      align-items: center;
    }

    .ant-list-item {
      padding: 5px 10px;
      background-color: #f6f6f6;
      border-radius: 5px;
      margin-bottom: 5px;
      cursor: pointer;
      position: relative;

      // .ant-list-item-meta:hover {
      //   transform: scale(1.01);
      //   background-color: #f4f4f4;
      // }
    }

    .ant-list-item:hover {
      transform: scale(1.01);
      background-color: #f4f4f4;
    }

    .ant-list-item-meta-description {
      color: #000;
    }

    &-titleDiv {
      display: flex;

      // align-items: flex-end;
      a {
        flex: 3;
        margin-bottom: 10px;
      }
    }
  }

  &-picon {
    display: inline-block;
    width: 0;
    height: 0;
    // border-top: 43px solid #868686;
    // border-top: 43px solid #e0d4d4;
    border-left: 30px solid transparent;
    position: absolute;
    top: 0;
    right: 0;
  }

  &-pimg {
    color: #fff;
    text-align: center;
    text-shadow: rgba(255, 255, 255, 0.5) 0px 1px 0px;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    position: absolute;
    padding: 10px 0;
    right: -2px;
    top: -8px;
    font-size: 10px;
  }

  &-row {
    width: 100%;
    height: 100%;
    margin-left: 0px !important;
    margin-right: 0px !important;
    .overflow();

    &-col {
      width: 100%;
      height: 100%;
      .overflow();

      &-divBox {
        background-color: #ffffff;
        width: 100%;
        height: 100%;
      }
    }
  }

  /**
  * 详情样式
  */

  &-detailModal {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;

    &-contentUser {
      display: flex;
      justify-content: flex-end;
      color: #989898;
    }

    &-scrollBox {
      width: 100% !important;
      height: 100% !important;
      overflow: hidden;
    }
  }

  /** 已读未读switch */
  &-tabRead {
    .ant-switch-handle {
      position: absolute;
      top: 0;
      left: 0;
    }

    .ant-switch {
      height: 32px;
      width: 80px;
      background-color: #f2f2f2;
      font-weight: 600;

      .ant-switch-handle::before {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        left: -10px;
      }
    }
  }
}
